﻿@using System.Data
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 7;
    Model.url = "MyExamResult_Data";
}
<div id="EGV">
    @if (Model.itemCount < 1)
    {
        <div style="background-color:#f9f9f9;border:1px solid #ddd;padding:10px 15px;">没有考试信息</div>
    }
    else
    {
        <table class="table table-striped table-bordered table-hover" cellspacing="0" rules="all" isholdstate="false" border="1" id="EGV" style="border-collapse:collapse;">
            <tbody>
                <tr>
                    <th>&nbsp;</th>
                    <th>流水号</th>
                    <th>试卷名称</th>
                    <th>分数</th>
                    <th>阅卷教师</th>
                    <th>答题日期</th>
                    <th>操作</th>
                </tr>
                @foreach (DataRow dr in Model.dt.Rows)
                {
                    <tr>
                        <td class="td_s">
                            <input type="checkbox" name="idchk" value="@dr["ID"]">
                        </td>
                        <td class="td_l">@dr["FlowID"]</td>
                        <td><a href="ExamDetail?ID=@dr["PaperID"]&Action=view&FlowID=@dr["FlowID"]" title="查看详情">@dr["PaperName"]</a></td>
                        <td class="td_m">@dr["TotalScore"]</td>
                        <td class="td_l">@if (dr["TechName"] == DBNull.Value) { <span>尚未阅卷</span> }else{ <span>@dr["TechName"]</span> }</td>
                        <td class="td_l">@DataConverter.CDate(dr["CDate"]).ToString("yyyy-MM-dd HH:mm")</td>
                        <td class="td_l">
                            <a href="ExamDetail?ID=@dr["PaperID"]&Action=view&FlowID=@dr["FlowID"]">查看详情</a>
                            <a href="ExamDetail?ID=@dr["PaperID"]">再次考试</a>
                        </td>
                    </tr>
                }
                @Html.Partial("_page", Model)
            </tbody>
        </table>
    }
</div>
